package api

import (
	auto "beergo/app/com/auto/controller"
	"beergo/app/com/conf"
	"github.com/beego/beego/v2/server/web"
)

type ComPageAdminController struct {
	auto.ComPageController
}

func init() {
	web.Router(conf.UrlPrefixAdmin + "/ComPage/:id", 		&ComPageAdminController{}, "*:GetAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/info", 		&ComPageAdminController{}, "*:InfoAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/scan", 		&ComPageAdminController{}, "*:ScanAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/list", 	    &ComPageAdminController{}, "*:ListAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/update", 	&ComPageAdminController{}, "*:UpdateAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/create", 	&ComPageAdminController{}, "*:CreateAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/copy", 	    &ComPageAdminController{}, "*:CopyAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/edit", 	    &ComPageAdminController{}, "*:EditAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/delete", 	&ComPageAdminController{}, "*:DeleteAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/:id/:field", &ComPageAdminController{}, "*:SonsAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/choice", &ComPageAdminController{}, "*:ChoiceAction")
	web.Router(conf.UrlPrefixAdmin + "/ComPage/category", &ComPageAdminController{}, "*:CategoryAction")
}
//func (this *ComPageAdminController) Prepare() {}
//func (this *ComPageAdminController) ListAction() {}
//func (this *ComPageAdminController) GetAction() {}
//func (this *ComPageAdminController) InfoAction() {}
//func (this *ComPageAdminController) ScanAction() {}
//func (this *ComPageAdminController) CreateAction() {}
//func (this *ComPageAdminController) UpdateAction() {}
//func (this *ComPageAdminController) CopyAction() {}
//func (this *ComPageAdminController) DeleteAction() {}
//func (this *ComPageAdminController) EditAction() {}
//func (this *ComPageAdminController) SonsAction() {}
//func (this *ComPageAdminController) ChoiceAction() {}
//func (this *ComPageAdminController) CategoryAction() {}
